﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;
namespace Facebook2.WebUI.AppCode
{
    public class Facebook2BaseClass : System.Web.UI.Page
    {
        public static string webServiceEndpoint;
        protected override void OnInit(EventArgs e)
        {
            string environment = ConfigurationManager.AppSettings["Environment"].ToString();

            switch (environment)
            {
                case "dev":
                    webServiceEndpoint = "Service_Dev";
                    break;
                case "prod":
                    webServiceEndpoint = "Service_Prod";
                    break;
            }
            base.OnInit(e);
        }
    }
}